<link rel="stylesheet" type="text/css" href="<?=MY_URL?>/html/styles/plugin/jquery.lightbox-0.5.css" />
<script type="text/javascript" src="<?=MY_URL?>/html/scripts/plugin/jquery.lightbox-0.5.pack.js"></script>
<form action="/product-addtocart" method="post" id="addtocartform">
<div class="new_bd clearfix">        
        <?php echo $this->render('index/left.phtml');?>    
        <!-- 主栏 -->
        <div class="new_mn">
		    <div class="w-blk0 w-blk-pdishow">
                <h2 class="blk0h2 f-iblk clearfix">
                	<span class="spbg blkhdl"><a href="<?php echo MY_URL;?>">Home</a> &gt; <?php echo $this->parentArray[count($this->parentArray)-2];?> &gt; <?php echo mb_substr($this->parentArray[count($this->parentArray)-1],0,30);?>...</span>
                    <span class="spbg blkhdr">&nbsp;</span>
                </h2>
                <div class="blkbody">
                	<div class="pdinfo clearfix">
                        <div class="psimg">
                            <div class="pbimg gallery">
                                <a href="<?=MY_URL?>/<?=$this->itemDetailArray[0]['cut_url']?>"><img style="width: 258px;" src="<?=MY_URL?>/<?=$this->itemDetailArray[0]['cut_url']?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'"/></a>
                            </div>
                            <div class="pimginfo">
                            	<input class="w-btn-blue0 spbg w-btn-blue0-0" type="button" value="LARGER IMAGE &amp; ADDITIONAL VIEWS" onclick="$('.gallery :first').find('a').click();"/>
                            </div>
                            <div class="psimgs">
                            	<div class="subj"><?=$this->itemDetailArray[0]['subject']?>:</div>
                            	<ul class="clearfix" class="gallery">
                            		<?php for($i=0;$i<count($this->attachmentArray);$i++):?>
                                    	<?php if($i==5){break;} ?>
							         	<li><a href="<?=MY_URL?>/<?=$this->attachmentArray[$i]['attachment_url']?>"><img src="<?=MY_URL?>/<?=$this->attachmentArray[$i]['cut_url']?>" alt="<?=$this->attachmentArray[$i]['intro']?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></li>
							        <?php endfor;?>
                                </ul>
                            </div>
                            <div class="psimgs">
                            	<div class="subj"><?=$this->itemDetailArray[0]['subject']?>:</div>
                            	<ul class="clearfix" class="gallery">
                            		<?php for($i=0;$i<count($this->attachmentArray);$i++):?>
                                    	<?php if($i==5){break;} ?>
							         	<li><a href="<?=MY_URL?>/<?=$this->attachmentArray[$i]['attachment_url']?>"><img src="<?=MY_URL?>/<?=$this->attachmentArray[$i]['cut_url']?>" alt="<?=$this->attachmentArray[$i]['intro']?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></li>
							        <?php endfor;?>
                                </ul>
                            </div>
                            <div class="psimgs">
                            	<div class="subj"><?=$this->itemDetailArray[0]['subject']?>:</div>
                            	<ul class="clearfix" class="gallery">
                            		<?php for($i=0;$i<count($this->attachmentArray);$i++):?>
                                    	<?php if($i==5){break;} ?>
							         	<li><a href="<?=MY_URL?>/<?=$this->attachmentArray[$i]['attachment_url']?>"><img src="<?=MY_URL?>/<?=$this->attachmentArray[$i]['cut_url']?>" alt="<?=$this->attachmentArray[$i]['intro']?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></li>
							        <?php endfor;?>
                                </ul>
                            </div>
                            <div class="psimgs">
                            	<div class="subj"><?=$this->itemDetailArray[0]['subject']?>:</div>
                            	<ul class="clearfix" class="gallery">
                            		<?php for($i=0;$i<count($this->attachmentArray);$i++):?>
                                    	<?php if($i==5){break;} ?>
							         	<li><a href="<?=MY_URL?>/<?=$this->attachmentArray[$i]['attachment_url']?>"><img src="<?=MY_URL?>/<?=$this->attachmentArray[$i]['cut_url']?>" alt="<?=$this->attachmentArray[$i]['intro']?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></li>
							        <?php endfor;?>
                                </ul>
                            </div>
                        </div> 
                  		<div class="pdmore">
                        	<h1 class="pdtitle2">
								<?=$this->itemDetailArray[0]['subject']?> 
								& <?=$this->itemDetailArray[0]['subject']?> 
								& <?=$this->itemDetailArray[0]['subject']?> 
								& <?=$this->itemDetailArray[0]['subject']?> 
                            </h1>
                            <div class="fourInOne">4 in 1 Package for <strong>Soccer Jersey</strong> (10% OFF)</div>
                            <div class="pdprice pitem clearfix">
                            	<div><span style="float: left;display: inline;line-height: 29px;">SALE!</span><span class="pricenum" style="float: left;display: inline;line-height: 29px;margin: 0 10px;">$<?php echo $this->itemDetailArray[0]['max_price']?></span><input style="float: left;display: inline;line-height: 29px;" class="spbg exchange" type="button" value="Exchange To Euros" onclick="GGSHOP.exchange.euros(this);" /></div>
                            	<div style="display: none;"><span style="float: left;display: inline;line-height: 29px;">SALE!</span><span class="pricenum" style="float: left;display: inline;line-height: 29px;margin: 0 10px;">€<?php echo printf ("%2.1f",$this->itemDetailArray[0]['max_price']*EXCHANGE_RATE)?></span><input style="float: left;display: inline;line-height: 29px;" class="spbg exchange" type="button" value="Exchange To USD" onclick="GGSHOP.exchange.usd(this);" /></div>
                            </div>
                            
                            <div class="price-lev clearfix">
                            	<div class="item-hd">Quantity:</div>
                            	<?foreach($this->priceArray as $value):?>
                            		<div class="item-hd-con"><?=$value['min_counts']?>-<?=$value['max_counts']?></div>
                            	<?endforeach;?>
                            </div>
                            <div class="price-lev clearfix">                            	
                                <div class="item-bd-hd">Price(USD):</div>
                                <?foreach($this->priceArray as $value):?>
                                	<?php if ($this->itemDetailArray[0]['max_price'] > 0):?>
                                	<div class="item-bd-hd-con">$<?=$value['net_price']?></div>
                                	<?php else:?>
                                	<div class="item-bd-hd-con"></div>
                                	<?php endif;?>
                            	<?endforeach;?>
                            </div>
                            <div class="price-lev clearfix">   
                            	<div class="item-bd-hd">Price(EUR):</div>
                                <?foreach($this->priceArray as $value):?>
                                	<?php if ($this->itemDetailArray[0]['max_price'] > 0):?>
                                	<div class="item-bd-hd-con">€<?=printf ("%2.1f",$value['net_price']*EXCHANGE_RATE)?></div>
                                	<?php else:?>
                                	<div class="item-bd-hd-con"></div>
                                	<?php endif;?>
                            	<?endforeach;?>            
                                <?foreach($this->priceArray as $value):?>
					              <input type="hidden" name="min_counts[]" value="<?=$value['min_counts']?>" />
					              <input type="hidden" name="max_counts[]" value="<?=$value['max_counts']?>" />
					            <?endforeach;?>
                            </div>

                            <div class="choseItem">
                            	<h2>Choose your size and quantity:</h2>
                                <div class="quantityChose">
                                    <div class="itemSub"><?=$this->itemDetailArray[0]['subject']?></div>
                                    <div class="pdsizeCount pitem">
                                        <div class="psize clearfix">
                                            <label class="lbtitle f-blk">&nbsp;</label>
                                            <?php foreach($this->pattern_size as $value):?>
                                            <span class="lbitem f-blk"><?php echo $value;?></span>
                                            <?php endforeach;?>
                                        </div>
                                        <div class="pcount clearfix">
                                            <label class="lbtitle2 f-blk">Quantity:</label>
                                            <?php foreach($this->pattern_size as $value):?>    
                                            <span class="lbitem f-blk">              
                                            <input type="hidden" value="<?=$value?>" name="pattern_size[]" />                    
                                            <input onkeyup="this.value=this.value.replace(/[^\d]/g,'')" pv="<?=$value?>" name="counts[]" class="psize" type="text" value="0" />
                                            </span>
                                            <?php endforeach;?> 
                                            <input type="hidden" name="pattern_name" value="<?=$this->priceArray[0]['pattern_name']?>" />
                                            <input type="hidden" name="itemid" value="<?=$this->itemid?>" />                               	
                                        </div>
                                    </div>                  
                                    <input type="hidden" name="addNameNum" value="0"></input>
                                </div>
                                
                                <div class="quantityChose">
                                    <div class="itemSub"><?=$this->itemDetailArray[0]['subject']?></div>
                                    <div class="pdsizeCount pitem">
                                        <div class="psize clearfix">
                                            <label class="lbtitle f-blk">&nbsp;</label>
                                            <?php foreach($this->pattern_size as $value):?>
                                            <span class="lbitem f-blk"><?php echo $value;?></span>
                                            <?php endforeach;?>
                                        </div>
                                        <div class="pcount clearfix">
                                            <label class="lbtitle2 f-blk">Quantity:</label>
                                            <?php foreach($this->pattern_size as $value):?>    
                                            <span class="lbitem f-blk">              
                                            <input type="hidden" value="<?=$value?>" name="pattern_size[]" />                    
                                            <input onkeyup="this.value=this.value.replace(/[^\d]/g,'')" pv="<?=$value?>" name="counts[]" class="psize" type="text" value="0" />
                                            </span>
                                            <?php endforeach;?> 
                                            <input type="hidden" name="pattern_name" value="<?=$this->priceArray[0]['pattern_name']?>" />
                                            <input type="hidden" name="itemid" value="<?=$this->itemid?>" />                               	
                                        </div>
                                    </div>                  
                                    <input type="hidden" name="addNameNum" value="0"></input>
                                </div>
                                
                                
                                <div class="quantityChose">
                                    <div class="itemSub"><?=$this->itemDetailArray[0]['subject']?></div>
                                    <div class="pdsizeCount pitem">
                                        <div class="psize clearfix">
                                            <label class="lbtitle f-blk">&nbsp;</label>
                                            <?php foreach($this->pattern_size as $value):?>
                                            <span class="lbitem f-blk"><?php echo $value;?></span>
                                            <?php endforeach;?>
                                        </div>
                                        <div class="pcount clearfix">
                                            <label class="lbtitle2 f-blk">Quantity:</label>
                                            <?php foreach($this->pattern_size as $value):?>    
                                            <span class="lbitem f-blk">              
                                            <input type="hidden" value="<?=$value?>" name="pattern_size[]" />                    
                                            <input onkeyup="this.value=this.value.replace(/[^\d]/g,'')" pv="<?=$value?>" name="counts[]" class="psize" type="text" value="0" />
                                            </span>
                                            <?php endforeach;?> 
                                            <input type="hidden" name="pattern_name" value="<?=$this->priceArray[0]['pattern_name']?>" />
                                            <input type="hidden" name="itemid" value="<?=$this->itemid?>" />                               	
                                        </div>
                                    </div>                  
                                    <input type="hidden" name="addNameNum" value="0"></input>
                                </div>
                                
                                
                                <div class="quantityChose">
                                    <div class="itemSub"><?=$this->itemDetailArray[0]['subject']?></div>
                                    <div class="pdsizeCount pitem">
                                        <div class="psize clearfix">
                                            <label class="lbtitle f-blk">&nbsp;</label>
                                            <?php foreach($this->pattern_size as $value):?>
                                            <span class="lbitem f-blk"><?php echo $value;?></span>
                                            <?php endforeach;?>
                                        </div>
                                        <div class="pcount clearfix">
                                            <label class="lbtitle2 f-blk">Quantity:</label>
                                            <?php foreach($this->pattern_size as $value):?>    
                                            <span class="lbitem f-blk">              
                                            <input type="hidden" value="<?=$value?>" name="pattern_size[]" />                    
                                            <input onkeyup="this.value=this.value.replace(/[^\d]/g,'')" pv="<?=$value?>" name="counts[]" class="psize" type="text" value="0" />
                                            </span>
                                            <?php endforeach;?> 
                                            <input type="hidden" name="pattern_name" value="<?=$this->priceArray[0]['pattern_name']?>" />
                                            <input type="hidden" name="itemid" value="<?=$this->itemid?>" />                               	
                                        </div>
                                    </div>                  
                                    <input type="hidden" name="addNameNum" value="0"></input>
                                </div>
                                    
                            </div>   
                            
                            <?php if ($this->itemDetailArray[0]['is_showed'] != 0):?>
                            <div class="paddcart pitem">
                            	<input type="submit" class="spbg" value="ADD TO SHOPPING CART" onclick="return GGSHOP.product.check()"/>
                                <div class="cartinfo" style="display: none;">In Stock and Ready to Ship! Sold by newjerseysoccer Retail, Inc.&nbsp;&nbsp;&nbsp;<a href="#">Shipping Options</a></div>
                            </div>
                            <?php else: ?>
                            <div class="paddcart pitem">
                            	Sorry, this shirt has been sold out.
                            </div>
                            <?php endif;?>    
                            
                            <div class="pshare clearfix pitem">
								<a href="#" class="spbg fb-share" style="float: left;display: inline;width: 80px; padding-top: 5px; background: none;">
                                	<fb:like href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" send="false" layout="button_count" show_faces="false" font="" width="80"></fb:like>
								</a>								
								<a href="#" class="spbg fb-share" style="float: left;display: inline;width: 80px;overflow: hidden; padding-top: 5px; background: none;margin-right: 0;"><g:plusone size="medium"></g:plusone></a>
								<a href="http://www.facebook.com/sharer.php?u=<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>&t=<?php echo $this->itemDetailArray[0]['subject'];?>" class="spbg fb-share"></a>
                                <a href="http://twitter.com/share?url=<?=MY_URL?>/pd-<?=$this->itemDetailArray[0]['itemid']?>.html&amp;text=<?=str_replace('#', ' ',$this->itemDetailArray[0]['subject'])?>" class="spbg tw-share"></a>
                            </div>
                        </div>
                    </div>
                    <div class="new_blk_pdlshow">
                        <div class="bikbody">
                        	<h3>You can also shop for one of these jerseys.</h3>
                            <ul class="clearfix">
                                <li class="clearfix">                    	
                                     <div class="prd simg"><a href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>"><img alt="<?php echo $this->itemDetailArray[0]['pattern_intro'];?>" title="<?php echo $this->itemDetailArray[0]['pattern_intro'];?>" src="<?php echo MY_URL;?>/<?php echo $this->itemDetailArray[0]['cut_url'];?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></div>
                                     <div class="prdl">
                                        <h2 class="spname"><a href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>"><?php echo $this->itemDetailArray[0]['subject'];?></a></h2>
                                        <div class="description"><?php echo $this->itemDetailArray[0]['description'];?></div>
                                        <div class="sprice clearfix"><a class="spbg f-iblk priceA" href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>">Price <span class="delete">$<?php echo $this->itemDetailArray[0]['m_org_price'];?></span> <strong>$<?php echo $this->itemDetailArray[0]['max_price'];?></strong></a><a class="buynowA spbg f-iblk" href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>">BUY&nbsp;&nbsp;NOW</a></div>
                                     </div>
                                  </li>
                                  <li class="clearfix">                    	
                                     <div class="prd simg"><a href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>"><img alt="<?php echo $this->itemDetailArray[0]['pattern_intro'];?>" title="<?php echo $this->itemDetailArray[0]['pattern_intro'];?>" src="<?php echo MY_URL;?>/<?php echo $this->itemDetailArray[0]['cut_url'];?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></div>
                                     <div class="prdl">
                                        <h2 class="spname"><a href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>"><?php echo $this->itemDetailArray[0]['subject'];?></a></h2>
                                        <div class="description"><?php echo $this->itemDetailArray[0]['description'];?></div>
                                        <div class="sprice clearfix"><a class="spbg f-iblk priceA" href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>">Price <span class="delete">$<?php echo $this->itemDetailArray[0]['m_org_price'];?></span> <strong>$<?php echo $this->itemDetailArray[0]['max_price'];?></strong></a><a class="buynowA spbg f-iblk" href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>">BUY&nbsp;&nbsp;NOW</a></div>
                                     </div>
                                  </li> 
                                  <li class="clearfix">                    	
                                     <div class="prd simg"><a href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>"><img alt="<?php echo $this->itemDetailArray[0]['pattern_intro'];?>" title="<?php echo round($this->itemDetailArray[0]['pattern_intro']/0.3,2);?>" src="<?php echo MY_URL;?>/<?php echo $this->itemDetailArray[0]['cut_url'];?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></div>
                                     <div class="prdl">
                                        <h2 class="spname"><a href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>"><?php echo $this->itemDetailArray[0]['subject'];?></a></h2>
                                        <div class="description"><?php echo $this->itemDetailArray[0]['description'];?></div>
                                        <div class="sprice clearfix"><a class="spbg f-iblk priceA" href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>">Price <span class="delete">$<?php echo $this->itemDetailArray[0]['m_org_price'];?></span> <strong>$<?php echo $this->itemDetailArray[0]['max_price'];?></strong></a><a class="buynowA spbg f-iblk" href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>">BUY&nbsp;&nbsp;NOW</a></div>
                                     </div>
                                  </li> 
                                  <li class="clearfix">                    	
                                     <div class="prd simg"><a href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>"><img alt="<?php echo $this->itemDetailArray[0]['pattern_intro'];?>" title="<?php echo $this->itemDetailArray[0]['pattern_intro'];?>" src="<?php echo MY_URL;?>/<?php echo $this->itemDetailArray[0]['cut_url'];?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></div>
                                     <div class="prdl">
                                        <h2 class="spname"><a href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>"><?php echo $this->itemDetailArray[0]['subject'];?></a></h2>
                                        <div class="description"><?php echo $this->itemDetailArray[0]['description'];?></div>
                                        <div class="sprice clearfix"><a class="spbg f-iblk priceA" href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>" title="<?php echo $this->itemDetailArray[0]['subject'];?>">Price <span class="delete">$<?php echo $this->itemDetailArray[0]['m_org_price'];?></span> <strong>$<?php echo $this->itemDetailArray[0]['max_price'];?></strong></a><a class="buynowA spbg f-iblk" href="<?php echo $this->url($this->itemDetailArray[0]['itemid']);?>">BUY&nbsp;&nbsp;NOW</a></div>
                                     </div>
                                  </li>    
                            </ul>           
                        </div>    
                    </div>
                    <div class="spbg2 pd-adver">
                        <strong>WOW!</strong>
		            	<span>
		            		<span>Free Shipping</span>
		            		<span class="spbg2">Free Returns</span>
		            		<span class="spbg2">Free 365 Day Return Policy</span>
		            		<span class="spbg2">24/7 Customer Service</span>
		            	</span>
                    </div>
                    <div class="pd-description">
                    	<h3>Description for <?=$this->itemDetailArray[0]['subject']?></h3>
                    	<a name="description"></a>
                        <div class="pddesc">
                        	<?php echo preg_replace('/<style.*<\/style>/Usi', '',$this->itemDetailArray[0]['content']);?>
                        </div>
                        <h3>Description for <?=$this->itemDetailArray[0]['subject']?></h3>
                    	<a name="description"></a>
                        <div class="pddesc">
                        	<?php echo preg_replace('/<style.*<\/style>/Usi', '',$this->itemDetailArray[0]['content']);?>
                        </div>
                        <h3>Description for <?=$this->itemDetailArray[0]['subject']?></h3>
                    	<a name="description"></a>
                        <div class="pddesc">
                        	<?php echo preg_replace('/<style.*<\/style>/Usi', '',$this->itemDetailArray[0]['content']);?>
                        </div>
                        <h3>Description for <?=$this->itemDetailArray[0]['subject']?></h3>
                    	<a name="description"></a>
                        <div class="pddesc">
                        	<?php echo preg_replace('/<style.*<\/style>/Usi', '',$this->itemDetailArray[0]['content']);?>
                        </div>
                    </div>
                    <?php if ($this->relateKey):?>
                    <div class="pd-alsoLike" style="height: auto">
                    	<h2 class="pd-innerH2">YOU MAY ALSO LIKE</h2>
						<div class="showbox1">
                        	<ul class="clearfix">
                        	<?php foreach ($this->relateKey as $v):?>
	                            <li>
	                               <a href="<?php echo MY_URL?>/product/<?php echo $this->keyModel->encode($v['keywords'], 0);?>_1.html"><strong><?php echo$v['keywords'];?></strong></a>
	                            </li>
                            <?php endforeach;?>                            
                        </ul>
                        </div>
                    </div>
                    <?php endif;?>
                </div>
            </div>
        </div>
    </div>
	<div class="w-blk0 w-blk-customize" id="custom_size" style="display: none; position:absolute; top:110px; left:130px;">
        <h2 class="blk0h2 f-iblk clearfix">
            <span class="spbg blkhdl"></span>
            <span class="spbg blkhdr"><input class="spbg" type="button" value="I DON'T WANT TO CUSTOMIZE" id="i_dont_want_to_sustomize" onclick="GGSHOP.product.close();"/></span>
        </h2>
        <div class="blkbody">
        	<div class="inner-blkbody">  
        		<div style="width:100%;height: 20px;">
	        		<div style="float:right;margin-top:5px;margin-right:5px;">
		            	<input class="item-add spbg" type="button" value="ADD" onclick="GGSHOP.product.addParam();"/>
	            	</div> 
	            </div>     		
        		<div class="custom-item-content">
            	<div class="custom-item clearfix" style="border: none; padding: 0; background: none;">
                	<div class="custom-left clearfix" style="padding:10px; padding-top: 0; border:1px #CCC solid; margin:10px 0px;border-radius: 6px 6px 6px 6px; background:url(../images/custom-bar.png) repeat-x top; width: 660px;">
                    	<div class="citem citem1">
                        	<label>Size:</label>&nbsp;
                            <select name="printshirtSize[]">
                            	<?php foreach($this->pattern_size as $value):?>
                                	<option value="<?php echo $value;?>"><?php echo $value;?></option>
                                <?php endforeach;?>                            	
                            </select>
                        </div>
                       
                        <div class="citem citem2 spbg">
                        	
                            <?php //有原版号并且存在明星号，且设置了可以打印号?>
                        	<?if(($this->itemDetailArray[0]['prooriginalnumber'] && count($this->select_Original) > 0) && $this->itemDetailArray[0]['proPrintnumber']):?>
                        	<?php //有原版号并且设置了可以自定义原版号?>
                            <?php if (($this->itemDetailArray[0]['prooriginalnumber'] && count($this->select_Original) > 0) && $this->itemDetailArray[0]['proocustomizeriginal'] && $this->itemDetailArray[0]['proPrintnumber']):?>
                            <div>Customize with official style (<a style="color:red" href="html/jerseyinfo.html" target="_blank">?</a>): +$<?php echo PRINT_ORIGINAL_PRICE;?></div>
                            <div>
                            	<label>Number:</label>
                                <input type="text" name="printshirtNumCus[]" class="numName-ipt" />
                                <label>&nbsp;&nbsp;Name:</label>
                                <input type="text" name="printshirtNameCus[]" class="numName-ipt" />
                            </div>                           
                            <div style="font-size: 10px;">Names can contain up to 12 letters A – Z. <br/>Numbers can only contain numbers 0 – 99.</div>
                            <div>Also you can: </div>
                            <?php //只设置了原版号，但是没有自定义原版号;?>
                            <?php elseif (($this->itemDetailArray[0]['prooriginalnumber'] && count($this->select_Original) > 0) && !$this->itemDetailArray[0]['proocustomizeriginal'] && $this->itemDetailArray[0]['proPrintnumber']):?>
                            <div>
                            	<input type="hidden" name="printshirtNumCus[]" />
                            	<input type="hidden" name="printshirtNameCus[]" />
                            </div>
                            <?php endif;?>
                        	<div>
                            	<input id="printorginal_select_0" class="crdio" type="radio" name="printorginal_0" value="1" checked <?php if ($this->itemDetailArray[0]['proocustomizeriginal']) {echo 'style="display: none;"';}?>/><label for="printorginal_select_0"><?php if (!$this->itemDetailArray[0]['proocustomizeriginal']) {echo '&nbsp';}?>Select a player from roster</label>
                            	<input name="Originalnum[]" onclick="GGSHOP.product.checkRadio(this);" value="" type="text" id='select_Original_tags_0' size="12" />
                            </div>                            
                            <?php endif?>   
                            <?php //后台不允许自定义原版号?> 
                            <?php if (!$this->itemDetailArray[0]['proocustomizeriginal'] && $this->itemDetailArray[0]['proPrintnumber']):?>
                            <div>                            	
                            	<input id="printorginal_noselect_0" class="crdio" type="radio" name="printorginal_0" checked value="0" <?php if (!($this->itemDetailArray[0]['prooriginalnumber'] && count($this->select_Original))) {echo 'style="display: none"';}?>/>
                            	<label for="printorginal_noselect_0">Customize with <span style="color: red">Basic style (<a style="color: red" href="html/jerseyinfo.html" target="_blank">?</a>)+$<?php echo PRINT_CUSTOM_PRICE;?></span>:</label><br/>
                            	<div></div>
                            	<label>Number:</label>
                                <input type="text" name="printshirtNum[]" class="numName-ipt" onclick="GGSHOP.product.checkRadio(this);"/>
                                <label>&nbsp;&nbsp;Name:</label>
                                <input type="text" name="printshirtName[]" class="numName-ipt" onclick="GGSHOP.product.checkRadio(this);"/>
                            </div>
                            <div style="font-size: 10px;">Names can contain up to 12 letters A – Z. <br/>Numbers can only contain numbers 0 – 99.</div>
                            <?php endif;?>
                        </div>
            
                        <?if (!empty($this->select_badgepatch)):?>	
                        <div class="citem citem3 spbg">
                        	<label>Patch:</label>
                        	<input name="select_badgepatch[]" value="" type="text" id='select_badgepatch_tags_0' size="12" />
                        </div>
                        <?php endif;?>
                        <div class="citem citem4 spbg">
                        	<label>Amount:&nbsp;</label><input value="0" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" type="text" name="printshirtAmount[]" />
                        </div>
                    </div>
                    <div class="custom-right">
                    	
                    </div>
                </div> 
                </div>                              
               
                <div class="custom-save">
                	<input type="button" class="spbg caddTo" value="ADD TO SHOPPING CART" onclick="GGSHOP.product.addcart();"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" onclick="GGSHOP.product.close();">Cancel</a>
                </div>
            </div>
        </div>
        </div>
</form>
<script type="text/javascript">
$(function(){
	var $cur = 1;
	var $i = 4;
	var $len = $('.showbox>ul>li').length;
	var $pages = Math.ceil($len / $i);
	fillPages($pages);
	var $w = $('.ibox').width();
	var $showbox = $('.showbox');
	var $num = $('span.num a');
	var $pre = $('span.pre');
	var $next = $('span.next');
	var $autoFun;
	var $autoFun1;
	autoSlide();
	$pre.click(function(){
		if (!$showbox.is(':animated')) {
			if ($cur == 1) {
				$showbox.animate({left: '-=' + $w * ($pages - 1)},500);
				$cur = $pages;
			}
			else {
				$showbox.animate({left: '+=' + $w},500);
				$cur--;
			}
			$num.eq($cur - 1).addClass('numcur').siblings().removeClass('numcur');
		}
	});
	$next.click(function(){
		if (!$showbox.is(':animated')) {
			if ($cur == $pages) {
				$showbox.animate({left: 0},500);
				$cur = 1;
			}
			else {
				$showbox.animate({left: '-=' + $w},500);
				$cur++;
			}
			$num.eq($cur - 1).addClass('numcur').siblings().removeClass('numcur');
		}
	});
	$num.click(function(){
		if (!$showbox.is(':animated')) {
			var $index = $num.index(this);
			$showbox.animate({left: '-' + ($w * $index)},500);
			$cur = $index + 1;
			$(this).addClass('numcur').siblings().removeClass('numcur');
		}
	});
	function fillPages(pages)
	{
		pages_str = "";
		for(i=1;i<=pages;i++)
		{
			if(i==1)
				pages_str += "&nbsp;<a href='javascript:;' class='numcur'>"+i+"</a>&nbsp;";
			else
				pages_str += "&nbsp;<a href='javascript:;'>"+i+"</a>&nbsp;";
		}
		$('span.num').html(pages_str);
	}
	function clearFun(elem){
		elem.hover(function(){clearAuto();},function(){autoSlide();});
	}
	function autoSlide(){
		$autoFun = setTimeout(autoSlide, 3000);
		$autoFun1 = setTimeout(autoSlide1, 3000);
	}
	function autoSlide1(){
		$next.trigger('click');
	}
	function clearAuto(){
		clearTimeout($autoFun);
		clearTimeout($autoFun1);
	}
	clearFun($showbox);
	clearFun($pre);
	clearFun($next);
	clearFun($num);
});
</script>
<script type="text/javascript">
$('.gallery a').lightBox({
	overlayOpacity: 0.6,
	imageLoading: ROOT_PATH + '/html/images/box/loading.gif',
	imageBtnClose: ROOT_PATH + '/html/images/box/close.gif',
	imageBtnPrev: ROOT_PATH + '/html/images/box/prev.gif',
	imageBtnNext: ROOT_PATH + '/html/images/box/next.gif',
	txtImage: 'Product images'
	}
);
//初始化模拟SELECT框
function divSelectInit()
{
	<?php if (OLDBADGE):?>
		<?if (!empty($this->select_badgepatch)):?>
		if(GGSHOP.product.select_badgepatch_vars == null)
		{
		GGSHOP.product.select_badgepatch_vars = new Array();
		<?foreach($this->select_badgepatch as $sbk=>$value) {
	    	$select_badgepatch_obj = split('\|',$value);
		?>
		GGSHOP.product.select_badgepatch_vars[<?=$sbk?>] = new Array();
		GGSHOP.product.select_badgepatch_vars[<?=$sbk?>]['key'] = "<?=$select_badgepatch_obj[0]?>";
		<?php if(isset($select_badgepatch_obj[1])): ?>
		GGSHOP.product.select_badgepatch_vars[<?=$sbk?>]['img'] = "<?=$select_badgepatch_obj[1]?>";
		<?php endif; ?>
		<?php }?>
		$("#select_badgepatch_tags_0").divSelect({data:GGSHOP.product.select_badgepatch_vars,parentclose:'#i_dont_want_to_sustomize'});
		}
		<?php endif;?>
	<?php else:?>
		<?if (!empty($this->select_badgepatch)):?>
		if(GGSHOP.product.select_badgepatch_vars == null)
		{
		GGSHOP.product.select_badgepatch_vars = new Array();
		<?foreach($this->select_badgepatch as $sbk=>$value) {
	    	
		?>
		GGSHOP.product.select_badgepatch_vars[<?=$sbk?>] = new Array();
		GGSHOP.product.select_badgepatch_vars[<?=$sbk?>]['key'] = "<?=$value['badge_name'] . ' $' . $value['badge_price']?>";
		GGSHOP.product.select_badgepatch_vars[<?=$sbk?>]['display'] = "<?=$value['badge_name'] . ' Price $' . $value['badge_price']?>";
		<?php if(!empty($value['img'])): ?>
		GGSHOP.product.select_badgepatch_vars[<?=$sbk?>]['img'] = "<?=$value['img']?>";
		<?php endif; ?>
		<?php }?>
		$("#select_badgepatch_tags_0").divSelect({data:GGSHOP.product.select_badgepatch_vars,parentclose:'#i_dont_want_to_sustomize'});
		}
		<?php endif;?>
		
	<?php endif;?>

	<?php if(!empty($this->select_Original)):?>
	if(GGSHOP.product.select_Original_vars == null)
	{
	GGSHOP.product.select_Original_vars = new Array();
	<?php foreach($this->select_Original as $sok=>$value):?>
	GGSHOP.product.select_Original_vars[<?=$sok?>] = new Array();
	GGSHOP.product.select_Original_vars[<?=$sok?>]['key'] = "<?=$value?>";
	<?php endforeach;?>
	$("#select_Original_tags_0").divSelect({data:GGSHOP.product.select_Original_vars,parentclose:'#i_dont_want_to_sustomize',callback:function(obj,v){
		GGSHOP.product.changeSelect(obj, v);
	}});
	}
	<?php endif;?>
}
</script>
<script src="<?=MY_URL?>/html/scripts/shop/shop.js"></script>
<script src="<?=MY_URL?>/html/scripts/jquery.divSelect.js"></script>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>